package com.josework.springhelloworld.base;

public class BaseResponse<T> {

    public int code;
    public String msg;
    public T data;

    public BaseResponse() {
        this.code = 200;
    }

    public BaseResponse(T result) {
        this.code = 200;
        this.data = result;
    }

    public BaseResponse(int statusCode, String errMessage) {
        this.code = statusCode;
        this.msg = errMessage;
    }
}
